import Vue from 'vue'
import Router from 'vue-router'
import Goodlist from '../views/Goodlist'
import CartList from '../views/CartList'
import Address from '../views/Address'
import orderConfirm from '../views/orderConfirm'
import orderSuccess from '../views/orderSuccess'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Goodlist',
            component: Goodlist
        },
        // {
        //     path: '/goods',
        //     name: 'Goodlist',
        //     component: Goodlist
        // },
        {
            path: '/cart',
            name: 'CartList',
            component: CartList
        },
        {
            path: '/address',
            name: 'Address',
            component: Address
        },
        {
            path: '/orderConfirm',
            name: 'orderConfirm',
            component: orderConfirm
        },
        {
            path: '/orderSuccess',
            name: 'orderSuccess',
            component: orderSuccess
        }
    ]
})